<?php
namespace app\api\controller;


use app\common\model\UserModel;
use think\Db;

class Ad extends Common
{
    public function ad_list(){
        $this->checkSign(false);
        $list = Db::name('ad')
            ->where('type_id',1)
            ->where('is_show',1)
            ->cache(true)
            ->field('title,url,link')
            ->select();
        return package(0,'success',$list);
    }
}